package cn.unknowpupil.service.quartz;

import cn.unknowpupil.domain.system.SysJob;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;


/**
 * Created at 2020-11-06 by  w10g <br>
 * Initialize JobInvokeUtil  ... <br>
 *  定时任务处理（禁止并发执行）
 *
 * @author QuartzDisallowConcurrentExecution
 * @since 0.0.1
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob {
    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
